S -> E $
E -> T EE
EE -> + T EE
EE -> #
T -> F TT
TT -> * F TT
TT -> #
F -> id
F -> num
F -> ( E )
